<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>项目列表</title>
<%@ include file="/pages/common/base/Head3.jsp"%>
<script type="text/javascript" src="/${res.contextPath}/js/project/project-addTask.js?version=${res.version}"></script>
<script>
	$(function(){
		AddTask.initPage("${res.contextPath}");	
	});
  </script>
</head>
<body>
		<fieldset class="layui-elem-field layui-field-title"
			style="margin-top: 20px;">
			<legend>添加任务</legend>
		</fieldset>
		<form class="layui-form" action="/web2019/project/saveTask">
		<div class="layui-form-item">
			<label class="layui-form-label">任务名称</label>
			<div class="layui-input-block">
				<input type="text" name="taskName" lay-verify="taskName" style="width:300px;"
					autocomplete="off" placeholder="请输入任务名称" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">任务类型</label>
   			<div class="layui-input-inline">
				<select name="taskType">
					 <z:options typeId="taskType"></z:options>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">任务描述</label>
		    <div class="layui-input-block">
		      <textarea name="description" placeholder="请输入内容" class="layui-textarea"></textarea>
		    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">项目</label>
			<div class="layui-input-inline">
				<select name="projectId" lay-verify="">
					<c:forEach items="${projects}" var="project">
							 <option value="${project.projectId}">${project.projectName}</option>
					 </c:forEach>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">开发人员</label>
			<div class="layui-input-inline">
				<select name="userId" lay-verify="">
				 <c:forEach items="${developers}" var="developer">
						 <option value="${developer.userId}">${developer.realName}</option>
				 </c:forEach>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">耗时</label>
				<div class="layui-input-inline">
					<input type="text" name="time" lay-verify="time"
						autocomplete="off" class="layui-input">
				</div>
				<label class="layui-form-label">小时</label>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
			</div>
		</div>
		</form>
 	<%@ include file="/pages/common/base/Foot.jsp" %>
</body>
</html>